import Layout from '@/layout'

const sysPermRouter = {
  path: '/sys-setting',
  component: Layout,
  redirect: '/sys-setting/fields',
  name: 'sys-setting',
  meta: {
    title: '设置',
    icon: 'icon'
  },
  children: [
    {
      path: 'fields',
      component: () => import('@/views/report-data/fields/index'),
      name: 'fields',
      meta: { title: '数据名称' }
    },
    {
      path: 'fields-group',
      component: () => import('@/views/report-data/groups/index'),
      name: 'fields-group',
      meta: { title: '数据分组' }
    },
    {
      path: 'fields-module',
      component: () => import('@/views/report-data/modules/index'),
      name: 'fields-module',
      meta: { title: '报表模块' }
    },
    {
      path: 'menu',
      component: () => import('@/views/_system/menu/index'),
      name: 'menu',
      meta: { title: '菜单权限' }
    },
    {
      path: 'api',
      component: () => import('@/views/_system/apis/index'),
      name: 'api',
      meta: { title: '接口权限' }
    }
  ]
}
export default sysPermRouter
